package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.util.UMEditorUploader;
import cn.wolfcode.wolf2w.util.UploadUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;


/**
 * Created by 甘静斌 on 2020-08-13 17:03
 */
@Controller
public class CoverImageController {

    @RequestMapping("/coverImageUpload")
    @ResponseBody
    public Object coverImageUpload(MultipartFile pic) throws Exception {

        //怎么保存图片
        String path = UploadUtil.uploadAli(pic);

        return path;

    }

}
